package com.javasm.controller;


import com.javasm.common.http.AxiosResult;
import com.javasm.domin.entity.SaleOutSn;
import com.javasm.service.SaleOutSnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author whl
 * @since 2022-01-17
 */
@RestController
@RequestMapping("/sale-out-sn")
public class SaleOutSnController {

    @Autowired
    SaleOutSnService iSaleOutSnService;

    @GetMapping("sn={id}")
    AxiosResult<SaleOutSn>findById(@PathVariable Long id){
        SaleOutSn byId = iSaleOutSnService.getById(id);
        return AxiosResult.success(byId);
    }

}
